home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 016 / source.files / iff / putpict.h < prev    next >
C/C++ Source or Header  |  1995-03-17  |  2KB  |  50 lines

  1. #ifndef PUTPICT_H
  2. #define PUTPICT_H
  3. /** putpict.h ********************************************************* */
  4. /* PutPict().  Given a BitMap and a color map in RAM on the Amiga,      */
  5. /* outputs as an ILBM.  See /iff/ilbm.h & /iff/ilbmw.c.       23-Jan-86 */
  6. /*                                                                      */ 
  7. /* By Jerry Morrison and Steve Shaw, Electronic Arts.                   */ 
  8. /* This software is in the public domain.                               */ 
  9. /*                                                                      */ 
  10. /* This version for the Commodore-Amiga computer.                       */
  11. /*                                                                      */ 
  12. /************************************************************************/
  13. #ifndef COMPILER_H
  14. #include "iff/compiler.h"
  15. #endif
  16.  
  17. #ifndef ILBM_H
  18. #include "iff/ilbm.h"
  19. #endif
  20.  
  21. #ifdef FDwAT
  22.  
  23. /****** IffErr *************************************************************/
  24. /* Returns the iff error code and resets it to zero                        */
  25. /***************************************************************************/
  26. extern IFFP IffErr(void);
  27.  
  28. /****** PutPict ************************************************************/
  29. /* Put a picture into an IFF file                                          */
  30. /* Pass in mask == NULL for no mask.                                       */
  31. /*                                                                         */
  32. /* Buffer should be big enough for one packed scan line                    */
  33. /* Buffer used as temporary storage to speed-up writing.                   */
  34. /* A large buffer, say 8KB, is useful for minimizing Write and Seek calls. */
  35. /* (See /iff/gio.h & /iff/gio.c).                                          */
  36. /***************************************************************************/
  37. extern BOOL PutPict(LONG, struct BitMap *, WORD,WORD, WORD *, BYTE *, LONG);
  38.          /* file, bm,           pageW,pageH,colorMap, buffer,bufsize */
  39.  
  40. #else /*not FDwAT*/
  41.  
  42. extern IFFP IffErr();
  43. extern BOOL PutPict();
  44.  
  45. #endif FDwAT
  46.  
  47. #endif PUTPICT_H
  48.  
  49.  
  50.